package velha;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;

public class VelhaMIDlet extends MIDlet {

    private final Display display;
    
    public VelhaMIDlet() {
      display = Display.getDisplay(this);
    }

    public void startApp() {
        Splash splash = new Splash();
        display.setCurrent(splash);

        try {
            Thread.sleep(1500);
        } catch (InterruptedException ex) {
        }

        display.setCurrent(new Menu(this));
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
        notifyDestroyed();
    }

    public Display getDisplay() {
        return display;
    }
}
